//
//  CommonTextView.swift 内容通用Text
//  swiftStudy
//
//  Created by Zhang on 2021/3/17.
//

import SwiftUI

struct CommonTextView: View {
    let content:String
    var isNeedTab:Bool = true //是否需要缩进
    
    var body: some View {
        Text(isNeedTab ? "    "+content : content)
            .lineSpacing(10)
            .font(.system(size: 18))
            .padding(10)
    }
}
